<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Pragma" content="no-cache">
    <meta http-equiv="Cache-control" content="no-cache">
    <meta http-equiv="Cache" content="no-cache">
    <title>智能进出口服务平台</title>
    <link rel="shortcut icon" type="image/x-icon" href="/images/logo.ico" />
    <link rel="stylesheet" type="text/css" href="/layui/css/layui.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/font-awesome.min.css?v=202001010101" />
    <link rel="stylesheet" type="text/css" href="/css/jquery-ui.css?v=202001010101">
    <link rel="stylesheet" type="text/css" href="/css/style.css?v=202001010101">
    <style type="text/css">
        .layui-table[lay-size=sm] tbody td{padding: 0px;}
        .layui-table[lay-size=sm] tbody td input{border: 0px;}
        .layui-card-body .layui-table{margin: 0px;}
        .tabBody{overflow-y: auto;max-height: 310px;}
        .layui-form-radio{margin: 0px;}
    </style>
</head>
<body>
<div class="tsf-page-content" style="padding: 0px;">
    <div class="layui-card">
        <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-address-card-o"></i>主单信息</span></div>
        <div class="layui-card-body">
            <div id="mainView"></div>
        </div>
        <form class="layui-form" method="post" lay-filter="memberForm" id="memberForm">
            <div class="layui-card-header"><span class="def-fc left-split"><i class="fa fa-list"></i>入库明细</span></div>
            <div class="layui-card-body">
                <div id="tabContainer" style="overflow-x: auto">
                    <div style="min-width: 1400px;">
                        <table class="layui-table" lay-size="sm">
                            <colgroup>
                                <col width="45">
                                <col width="150">
                                <col width="130">
                                <col width="130">
                                <col width="80">
                                <col width="80">
                                <col width="80">
                                <col width="50">
                                <col width="80">
                                <col width="80">
                                <col width="80">
                                <col width="90">
                                <col width="90">
                                <col>
                                <col width="45">
                            </colgroup>
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>型号</th>
                                <th>品名</th>
                                <th>品牌</th>
                                <th>单位</th>
                                <th>入库数量</th>
                                <th>已绑数量</th>
                                <th>箱数</th>
                                <th>箱号</th>
                                <th>净重(KG)</th>
                                <th>毛重(KG)</th>
                                <th>产地</th>
                                <th>客户料号</th>
                                <th>订单号</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                        </table>
                        <div class="tabBody">
                            <table class="layui-table" lay-size="sm">
                                <colgroup>
                                    <col width="45">
                                    <col width="150">
                                    <col width="130">
                                    <col width="130">
                                    <col width="80">
                                    <col width="80">
                                    <col width="80">
                                    <col width="50">
                                    <col width="80">
                                    <col width="80">
                                    <col width="80">
                                    <col width="90">
                                    <col width="90">
                                    <col>
                                    <col width="45">
                                </colgroup>
                                <tbody id="materialBody">

                                </tbody>
                            </table>
                        </div>
                        <table class="layui-table" lay-size="sm">
                            <tfoot>
                            <tr>
                                <th>
                                    <div style="padding:2px">
                                        <a href="javascript:void(0)" class="btn btn-default addrow-btn"><i class="fa fa-plus"></i>添加一行</a>
                                    </div>
                                </th>
                            </tr>
                            <tr>
                                <th>
                                    <div class="layui-row">
                                        <div class="layui-col-md3">
                                            总数量：<h2 style="display: inline-block" id="quantityTotal">0.0</h2>
                                        </div>
                                        <div class="layui-col-md3">
                                            总箱数：<h2 style="display: inline-block" id="cartonTotal">0</h2>
                                        </div>
                                        <div class="layui-col-md3">
                                            总净重：<h2 style="display: inline-block" id="netWeightTotal">0.0000</h2>
                                        </div>
                                        <div class="layui-col-md3">
                                            总毛重：<h2 style="display: inline-block" id="grossWeightTotal">0.0000</h2>
                                        </div>
                                    </div>
                                </th>
                            </tr>
                            </tfoot>
                        </table>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="tsf-page-btn-group">
    <button type="button" class="layui-btn layui-btn-sm layui-btn-normal save-btn"><i class="fa fa-save"></i>保存</button>
    <button type="button" class="layui-btn layui-btn-primary layui-btn-sm close-window"><i class="fa fa-close"></i>关闭</button>
</div>
<script  type="text/html" id="mainViewTemp">
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">入库单号：</label><label class="fval">{{d.docNo}}</label></div>
        <div class="layui-col-md3"><label class="fkey">入库时间：</label><label class="fval">{{d.receivingDate}}</label></div>
        <div class="layui-col-md3"><label class="fkey">客户名称：</label><label class="fval">{{d.customerName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">境外供应商：</label><label class="fval">{{d.supplierName}}</label></div>
    </div>
    <div class="layui-row">
        <div class="layui-col-md3"><label class="fkey">入库仓库：</label><label class="fval">{{d.warehouseName}}</label></div>
        <div class="layui-col-md3"><label class="fkey">交货方式：</label><label class="fval">{{d.deliveryModeName}}  {{removeNull(d.hkExpressName)}} {{removeNull(d.hkExpressNo)}}</label></div>
        <div class="layui-col-md3"><label class="fkey">总箱数：</label><label class="fval">{{d.totalCartonNum}}</label></div>
        <div class="layui-col-md3"><label class="fkey">订单号：</label><label class="fval">{{removeNull(d.orderNo)}}</label></div>
    </div>
</script>
<script type="text/javascript" src="/js/jquery.min.js?v=202001010101"></script>
<script type="text/javascript" src="/layui/layui.js?v=202001010101"></script>
<script type="text/javascript" src="/js/jquery-ui.min.js?v=202001010101"></script>
<script type="text/javascript" src="/My97DatePicker/WdatePicker.js?v=202001010101"></script>
<script type="text/javascript" src="/js/app.js?v=202006010928"></script>
<script type="text/javascript" src="/js/sel-load.js?v=202001010101"></script>
<script type="text/javascript" src="/js/autocomplete.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file-config.js?v=202001010101"></script>
<script type="text/javascript" src="/upload/file.js?v=202001010101"></script>
<script type="text/javascript" src="/wms/receivingNote/abroad-inspection.js?v=202001010101"></script>
</body>
</html>